package com.yangzc.lion.sys.organization.service.spring;

import java.util.List;

import com.yangzc.lion.common.dao.HQLInfo;
import com.yangzc.lion.common.service.BaseServiceImp;
import com.yangzc.lion.sys.organization.model.SysAuthRole;
import com.yangzc.lion.sys.organization.service.ISysAuthRoleService;

public class SysAuthRoleServiceImp extends BaseServiceImp<SysAuthRole>
		implements ISysAuthRoleService {
	
	public List<SysAuthRole> getRoleList(String personId) throws Exception{
		HQLInfo hqlInfo = new HQLInfo();
		hqlInfo.setJoinBlock("left join sysAuthRole.hbmOrgElements person");
		hqlInfo.setWhereBlock("person.fdId=:fdId");
		hqlInfo.setParameter("fdId", personId);
		return this.findList(hqlInfo);
	}
}
